Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merge] Add ForkChoiceNotifier to combine fork choice updates with beacon proposers #4688

Closed
wants to merge 8 commits into from

Conversation

ajsutton
Copy link
Contributor

PR Description

Based on @tbenr 's #4678. This introduces ForkChoiceNotifier which combines information from the REST API about which validators the beacon node should prepare blocks for with fork choice state updates and calls the execution engine onForkChoiceUpdated function.

The ForkChoiceNotifier implementation is made thread safe by using an EventThread which ensures ForkChoiceNotifier code runs on a single thread to avoid race conditions, but incoming events preserve ordering to ensure forkChoiceUpdated notifications are still sent in order.

The ForkChoice system doesn't currently deliver events to the ForkChoiceNotifer. That will be done in a follow up PR.

Fixed Issue(s)

#4668

Documentation

  • I thought about documentation and added the documentation label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

@tbenr tbenr closed this Nov 22, 2021
@tbenr
Copy link
Contributor

tbenr commented Nov 22, 2021

merged in #4687

@ajsutton ajsutton deleted the just-forkchoice-notifier branch June 16, 2022 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants